<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
[#include "/admin/include/admin_static.htm"]
</head>
<body>
	<div class="main_admin_content">
        <fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
            <legend>新闻类别</legend>
        </fieldset>

        <a href="${path}/admin/articleCate/add.aspx"  class="layui-btn " style="width: 100px; heigth: 30px; line-height: 30px" >添加</a>



        <table class="layui-table">
            <colgroup>
                <col width="50">
                <col width="80">
                <col width="80">
                <col width="80">
            </colgroup>
			<thead>
			<tr>
				<th>序号</th>
				<th>类别名称</th>
				<th>修改</th>
                <th>删除</th>
			</tr>
            </thead>
			[#list newsTypes as newsType]
				<tr>
					<td>${newsType.id}</td>
					<td>${newsType.name }</td>
					<td>
						<input type="button" onclick="window.location.href='${path}/admin/articleCate/add.aspx?typeId=${newsType.id}'"
							value="修改"  class="layui-btn " />
                    </td>
                    <td>

                        <input type="button" onclick="javascript:if(confirm('确定要删除吗？请谨慎考虑')) window.location.href='${path}/admin/articleCate/delete.aspx?typeId=${newsType.id}'"
                        	value="删除"  class="layui-btn " />
					</td>
				</tr>
			[/#list]
		</table>
	</div>
</body>
</html>